<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>合作伙伴 - 流光小队</title>
    <link rel="stylesheet" href="../../css/style.css">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
    <style>
        .partners-section {
            max-width: 1200px;
            margin: 0 auto;
            padding: 40px 20px;
        }

        .partners-header {
            text-align: center;
            margin-bottom: 50px;
        }

        .partners-header h1 {
            font-size: 2.5em;
            color: #2d3748;
            margin-bottom: 15px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .partners-header p {
            font-size: 1.2em;
            color: #718096;
            max-width: 600px;
            margin: 0 auto;
        }

        .partners-stats {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
            margin-bottom: 50px;
        }

        .stat-card {
            background: white;
            border-radius: 12px;
            padding: 25px;
            text-align: center;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
            border: 1px solid #e2e8f0;
        }

        .stat-number {
            font-size: 2.5em;
            font-weight: bold;
            color: #667eea;
            margin-bottom: 10px;
        }

        .stat-label {
            color: #718096;
            font-size: 1.1em;
        }

        .partners-tabs {
            display: flex;
            justify-content: center;
            gap: 10px;
            margin-bottom: 40px;
            flex-wrap: wrap;
        }

        .tab-btn {
            padding: 12px 24px;
            border: none;
            border-radius: 25px;
            background: #f7fafc;
            color: #718096;
            font-size: 1em;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .tab-btn.active {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
        }

        .tab-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
        }

        .partners-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 30px;
            margin-bottom: 50px;
        }

        .partner-card {
            background: white;
            border-radius: 16px;
            overflow: hidden;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
            border: 1px solid #e2e8f0;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .partner-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
        }

        .partner-logo {
            width: 100%;
            height: 150px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 2.5em;
            position: relative;
        }

        .partner-type {
            position: absolute;
            top: 15px;
            right: 15px;
            padding: 5px 12px;
            border-radius: 15px;
            font-size: 0.8em;
            font-weight: 600;
            color: white;
        }

        .type-enterprise {
            background: #38a169;
        }

        .type-university {
            background: #3182ce;
        }

        .type-startup {
            background: #d69e2e;
        }

        .partner-content {
            padding: 25px;
        }

        .partner-name {
            font-size: 1.3em;
            font-weight: 600;
            color: #2d3748;
            margin-bottom: 10px;
        }

        .partner-meta {
            display: flex;
            align-items: center;
            gap: 15px;
            margin-bottom: 15px;
            font-size: 0.9em;
            color: #718096;
        }

        .meta-item {
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .meta-item i {
            color: #667eea;
        }

        .partner-description {
            color: #4a5568;
            line-height: 1.6;
            margin-bottom: 20px;
        }

        .partner-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 20px;
        }

        .partner-tag {
            background: #f7fafc;
            color: #4a5568;
            padding: 4px 12px;
            border-radius: 15px;
            font-size: 0.85em;
            font-weight: 500;
        }

        .partner-actions {
            display: flex;
            gap: 10px;
        }

        .action-btn {
            flex: 1;
            padding: 10px 15px;
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            background: white;
            color: #4a5568;
            font-size: 0.9em;
            cursor: pointer;
            transition: all 0.3s ease;
            text-align: center;
            text-decoration: none;
        }

        .action-btn:hover {
            background: #667eea;
            color: white;
            border-color: #667eea;
        }

        .action-btn.primary {
            background: #667eea;
            color: white;
            border-color: #667eea;
        }

        .action-btn.primary:hover {
            background: #5a67d8;
        }

        .cooperation-section {
            background: #f7fafc;
            border-radius: 16px;
            padding: 40px;
            margin-bottom: 50px;
        }

        .cooperation-header {
            text-align: center;
            margin-bottom: 30px;
        }

        .cooperation-header h2 {
            font-size: 2em;
            color: #2d3748;
            margin-bottom: 10px;
        }

        .cooperation-header p {
            color: #718096;
            font-size: 1.1em;
        }

        .cooperation-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 25px;
        }

        .cooperation-item {
            background: white;
            border-radius: 12px;
            padding: 25px;
            text-align: center;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            transition: transform 0.3s ease;
        }

        .cooperation-item:hover {
            transform: translateY(-5px);
        }

        .cooperation-icon {
            font-size: 3em;
            color: #667eea;
            margin-bottom: 15px;
        }

        .cooperation-title {
            font-size: 1.2em;
            font-weight: 600;
            color: #2d3748;
            margin-bottom: 10px;
        }

        .cooperation-description {
            color: #718096;
            line-height: 1.5;
            margin-bottom: 15px;
        }

        .cooperation-btn {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 20px;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .cooperation-btn:hover {
            transform: scale(1.05);
        }

        .links-section {
            background: white;
            border-radius: 16px;
            padding: 40px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
            border: 1px solid #e2e8f0;
        }

        .links-header {
            text-align: center;
            margin-bottom: 30px;
        }

        .links-header h2 {
            font-size: 2em;
            color: #2d3748;
            margin-bottom: 10px;
        }

        .links-header p {
            color: #718096;
            font-size: 1.1em;
        }

        .links-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
        }

        .link-item {
            background: #f7fafc;
            border-radius: 12px;
            padding: 20px;
            text-align: center;
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .link-item:hover {
            background: #edf2f7;
            transform: translateY(-3px);
        }

        .link-icon {
            font-size: 2em;
            color: #667eea;
            margin-bottom: 10px;
        }

        .link-name {
            font-size: 1em;
            font-weight: 500;
            color: #2d3748;
        }

        @media (max-width: 768px) {
            .partners-tabs {
                gap: 8px;
            }

            .tab-btn {
                padding: 10px 20px;
                font-size: 0.9em;
            }

            .partners-grid {
                grid-template-columns: 1fr;
                gap: 20px;
            }

            .cooperation-grid {
                grid-template-columns: 1fr;
            }

            .links-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }
    </style>
</head>
<body>
    <!-- 侧边栏 -->
    <div class="sidebar" id="sidebar">
        <div class="sidebar-header">
            <h3>流光小队</h3>
            <button class="sidebar-toggle" onclick="toggleSidebar()">
                <i class="fas fa-times"></i>
            </button>
        </div>
        <nav class="sidebar-nav">
            <ul>
                <li>
                    <a href="../../index.html">
                        <i class="fas fa-home"></i>
                        首页
                    </a>
                </li>
                <li>
                    <a href="../about/index.html">
                        <i class="fas fa-info-circle"></i>
                        关于我们
                    </a>
                </li>
                
                <!-- 成员相关 -->
                <li>
                    <a href="../members/index.html">
                        <i class="fas fa-users"></i>
                        成员介绍
                    </a>
                </li>
                <li>
                    <a href="../excellent/index.html">
                        <i class="fas fa-star"></i>
                        优秀成员
                    </a>
                </li>
                
                <!-- 活动相关 -->
                <li>
                    <a href="../activities/upcoming.html">
                        <i class="fas fa-calendar-alt"></i>
                        活动预告
                    </a>
                </li>
                <li>
                    <a href="../activities/past.html">
                        <i class="fas fa-history"></i>
                        往期活动
                    </a>
                </li>
                <li>
                    <a href="../activities/calendar.html">
                        <i class="fas fa-calendar"></i>
                        活动日历
                    </a>
                </li>
                
                <!-- 成果与资源 -->
                <li>
                    <a href="../achievements/index.html">
                        <i class="fas fa-trophy"></i>
                        小组成果
                    </a>
                </li>
                <li>
                    <a href="../resources/index.html">
                        <i class="fas fa-book"></i>
                        学习资料
                    </a>
                </li>
                <li>
                    <a href="../resources/shares.html">
                        <i class="fas fa-share-alt"></i>
                        成员分享
                    </a>
                </li>
                
                <!-- 互动与讨论 -->
                <li>
                    <a href="../interaction/index.html">
                        <i class="fas fa-comments"></i>
                        互动交流
                    </a>
                </li>
                
                <!-- 加入与联系 -->
                <li>
                    <a href="../join/index.html">
                        <i class="fas fa-user-plus"></i>
                        加入我们
                    </a>
                </li>
                <li>
                    <a href="../contact/index.html">
                        <i class="fas fa-address-book"></i>
                        联系方式
                    </a>
                </li>
                
                <!-- 其他扩展 -->
                <li class="active">
                    <a href="index.html">
                        <i class="fas fa-handshake"></i>
                        合作伙伴
                    </a>
                </li>
                <li>
                    <a href="../faq/index.html">
                        <i class="fas fa-question-circle"></i>
                        常见问题
                    </a>
                </li>
            </ul>
        </nav>
    </div>

    <!-- 主内容区域 -->
    <div class="main-content">
        <!-- 顶部导航栏 -->
        <div class="topbar">
            <div class="topbar-left">
                <button class="menu-toggle" onclick="toggleSidebar()">
                    <i class="fas fa-bars"></i>
                </button>
                <h1>合作伙伴</h1>
            </div>
        </div>

        <!-- 内容区域 -->
        <div class="content">
            <div class="partners-section">
                <!-- 页面标题 -->
                <div class="partners-header">
                    <h1>合作伙伴</h1>
                    <p>与优秀企业和机构建立合作关系，共同推动科技创新发展</p>
                </div>

                <!-- 合作统计 -->
                <div class="partners-stats">
                    <div class="stat-card">
                        <div class="stat-number">15+</div>
                        <div class="stat-label">合作企业</div>
                    </div>
                    <div class="stat-card">
                        <div class="stat-number">8+</div>
                        <div class="stat-label">合作院校</div>
                    </div>
                    <div class="stat-card">
                        <div class="stat-number">20+</div>
                        <div class="stat-label">合作项目</div>
                    </div>
                    <div class="stat-card">
                        <div class="stat-number">5+</div>
                        <div class="stat-label">合作年数</div>
                    </div>
                </div>

                <!-- 合作伙伴分类标签 -->
                <div class="partners-tabs">
                    <button class="tab-btn active" onclick="switchTab('all')" data-tab="all">
                        <i class="fas fa-th"></i> 全部伙伴
                    </button>
                    <button class="tab-btn" onclick="switchTab('enterprise')" data-tab="enterprise">
                        <i class="fas fa-building"></i> 企业伙伴
                    </button>
                    <button class="tab-btn" onclick="switchTab('university')" data-tab="university">
                        <i class="fas fa-university"></i> 院校伙伴
                    </button>
                    <button class="tab-btn" onclick="switchTab('startup')" data-tab="startup">
                        <i class="fas fa-rocket"></i> 创业伙伴
                    </button>
                </div>

                <!-- 合作伙伴展示网格 -->
                <div class="partners-grid" id="partnersGrid">
                    <!-- 合作伙伴卡片将通过JavaScript动态生成 -->
                </div>

                <!-- 合作方式 -->
                <div class="cooperation-section">
                    <div class="cooperation-header">
                        <h2><i class="fas fa-handshake"></i> 合作方式</h2>
                        <p>我们提供多种合作模式，欢迎各类机构与我们建立合作关系</p>
                    </div>
                    <div class="cooperation-grid">
                        <div class="cooperation-item">
                            <div class="cooperation-icon">💼</div>
                            <div class="cooperation-title">项目合作</div>
                            <div class="cooperation-description">共同开展技术研发项目，实现资源共享和优势互补</div>
                            <button class="cooperation-btn" onclick="showCooperationDetail('project')">了解详情</button>
                        </div>
                        <div class="cooperation-item">
                            <div class="cooperation-icon">🎓</div>
                            <div class="cooperation-title">人才培养</div>
                            <div class="cooperation-description">建立实习基地，为学生提供实践机会和就业指导</div>
                            <button class="cooperation-btn" onclick="showCooperationDetail('talent')">了解详情</button>
                        </div>
                        <div class="cooperation-item">
                            <div class="cooperation-icon">🔬</div>
                            <div class="cooperation-title">技术交流</div>
                            <div class="cooperation-description">定期举办技术研讨会，分享最新技术趋势和研究成果</div>
                            <button class="cooperation-btn" onclick="showCooperationDetail('tech')">了解详情</button>
                        </div>
                        <div class="cooperation-item">
                            <div class="cooperation-icon">💰</div>
                            <div class="cooperation-title">资金支持</div>
                            <div class="cooperation-description">为优秀项目提供资金支持，助力创新成果转化</div>
                            <button class="cooperation-btn" onclick="showCooperationDetail('funding')">了解详情</button>
                        </div>
                    </div>
                </div>

                <!-- 友情链接 -->
                <div class="links-section">
                    <div class="links-header">
                        <h2><i class="fas fa-link"></i> 友情链接</h2>
                        <p>推荐一些优秀的科技相关网站和资源</p>
                    </div>
                    <div class="links-grid">
                        <div class="link-item" onclick="openLink('https://github.com')">
                            <div class="link-icon">🐙</div>
                            <div class="link-name">GitHub</div>
                        </div>
                        <div class="link-item" onclick="openLink('https://stackoverflow.com')">
                            <div class="link-icon">📚</div>
                            <div class="link-name">Stack Overflow</div>
                        </div>
                        <div class="link-item" onclick="openLink('https://leetcode.com')">
                            <div class="link-icon">💻</div>
                            <div class="link-name">LeetCode</div>
                        </div>
                        <div class="link-item" onclick="openLink('https://kaggle.com')">
                            <div class="link-icon">📊</div>
                            <div class="link-name">Kaggle</div>
                        </div>
                        <div class="link-item" onclick="openLink('https://arxiv.org')">
                            <div class="link-icon">📄</div>
                            <div class="link-name">arXiv</div>
                        </div>
                        <div class="link-item" onclick="openLink('https://ieee.org')">
                            <div class="link-icon">⚡</div>
                            <div class="link-name">IEEE</div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <script>
        // 合作伙伴数据
        const partners = [
            {
                id: 1,
                name: "腾讯科技",
                category: "enterprise",
                type: "enterprise",
                industry: "互联网",
                date: "2023-01-15",
                description: "与腾讯科技建立战略合作关系，在人工智能、云计算等领域开展深度合作。",
                tags: ["人工智能", "云计算", "战略合作"],
                icon: "🐧",
                stats: { projects: 5, years: 2, members: 50 }
            },
            {
                id: 2,
                name: "清华大学",
                category: "university",
                type: "university",
                industry: "高等教育",
                date: "2022-09-01",
                description: "与清华大学计算机系建立学术合作关系，共同开展前沿技术研究。",
                tags: ["学术合作", "技术研究", "人才培养"],
                icon: "🎓",
                stats: { projects: 8, years: 3, members: 30 }
            },
            {
                id: 3,
                name: "字节跳动",
                category: "enterprise",
                type: "enterprise",
                industry: "互联网",
                date: "2023-06-20",
                description: "与字节跳动在推荐算法、大数据分析等领域开展项目合作。",
                tags: ["推荐算法", "大数据", "项目合作"],
                icon: "📱",
                stats: { projects: 3, years: 1, members: 25 }
            },
            {
                id: 4,
                name: "北京大学",
                category: "university",
                type: "university",
                industry: "高等教育",
                date: "2022-12-10",
                description: "与北京大学信息科学技术学院建立合作关系，推动产学研结合。",
                tags: ["产学研", "信息科学", "学术交流"],
                icon: "🏛️",
                stats: { projects: 6, years: 2, members: 40 }
            },
            {
                id: 5,
                name: "创新工场",
                category: "startup",
                type: "startup",
                industry: "投资孵化",
                date: "2023-03-15",
                description: "与创新工场建立创业孵化合作关系，为优秀项目提供资金和指导。",
                tags: ["创业孵化", "投资", "项目指导"],
                icon: "🚀",
                stats: { projects: 4, years: 1, members: 15 }
            },
            {
                id: 6,
                name: "阿里巴巴",
                category: "enterprise",
                type: "enterprise",
                industry: "电子商务",
                date: "2023-08-01",
                description: "与阿里巴巴在电商技术、云计算等领域开展技术合作。",
                tags: ["电商技术", "云计算", "技术合作"],
                icon: "🛒",
                stats: { projects: 7, years: 2, members: 35 }
            }
        ];

        let currentTab = 'all';

        function toggleSidebar() {
            const sidebar = document.getElementById('sidebar');
            sidebar.classList.toggle('open');
        }

        function switchTab(tab) {
            currentTab = tab;
            
            // 更新标签按钮状态
            document.querySelectorAll('.tab-btn').forEach(btn => {
                btn.classList.remove('active');
            });
            document.querySelector(`[data-tab="${tab}"]`).classList.add('active');
            
            // 重新渲染合作伙伴列表
            renderPartners();
        }

        function renderPartners() {
            const grid = document.getElementById('partnersGrid');
            const filteredPartners = currentTab === 'all' 
                ? partners 
                : partners.filter(partner => partner.category === currentTab);
            
            grid.innerHTML = filteredPartners.map(partner => `
                <div class="partner-card">
                    <div class="partner-logo">
                        ${partner.icon}
                        <div class="partner-type type-${partner.type}">
                            ${getTypeText(partner.type)}
                        </div>
                    </div>
                    <div class="partner-content">
                        <div class="partner-name">${partner.name}</div>
                        <div class="partner-meta">
                            <div class="meta-item">
                                <i class="fas fa-industry"></i>
                                <span>${partner.industry}</span>
                            </div>
                            <div class="meta-item">
                                <i class="fas fa-calendar"></i>
                                <span>${partner.date}</span>
                            </div>
                        </div>
                        <div class="partner-description">${partner.description}</div>
                        <div class="partner-tags">
                            ${partner.tags.map(tag => `<span class="partner-tag">${tag}</span>`).join('')}
                        </div>
                        <div class="partner-actions">
                            <button class="action-btn" onclick="showPartnerDetail(${partner.id})">
                                <i class="fas fa-eye"></i> 详情
                            </button>
                            <button class="action-btn primary" onclick="contactPartner(${partner.id})">
                                <i class="fas fa-envelope"></i> 联系
                            </button>
                        </div>
                    </div>
                </div>
            `).join('');
        }

        function getTypeText(type) {
            const typeMap = {
                'enterprise': '企业',
                'university': '院校',
                'startup': '创业'
            };
            return typeMap[type] || type;
        }

        function showPartnerDetail(id) {
            const partner = partners.find(p => p.id === id);
            if (partner) {
                const detailText = `
🤝 合作伙伴详情

名称：${partner.name}
类型：${getTypeText(partner.type)}
行业：${partner.industry}
合作时间：${partner.date}

📝 合作描述：
${partner.description}

🏷️ 合作领域：
${partner.tags.join('、')}

📊 合作统计：
• 合作项目：${partner.stats.projects}个
• 合作年数：${partner.stats.years}年
• 参与成员：${partner.stats.members}人
                `;
                alert(detailText);
            }
        }

        function contactPartner(id) {
            const partner = partners.find(p => p.id === id);
            if (partner) {
                alert(`联系${partner.name}：\n\n📧 邮箱：partnership@${partner.name.toLowerCase()}.com\n📱 电话：400-000-0000\n💬 微信：${partner.name}合作部`);
            }
        }

        function showCooperationDetail(type) {
            const details = {
                'project': '项目合作包括技术研发、产品开发、解决方案设计等。我们提供技术团队和研发能力，合作伙伴提供业务场景和市场需求。',
                'talent': '人才培养合作包括实习基地建设、校企合作项目、技术培训等。为学生提供实践机会，为企业输送优秀人才。',
                'tech': '技术交流包括技术研讨会、学术会议、技术分享会等。定期举办活动，促进技术交流和知识分享。',
                'funding': '资金支持包括项目投资、创新基金、奖学金等。为优秀项目和创新成果提供资金支持。'
            };
            alert(details[type] || '合作详情正在完善中...');
        }

        function openLink(url) {
            window.open(url, '_blank');
        }

        // 页面加载完成后初始化
        document.addEventListener('DOMContentLoaded', function() {
            renderPartners();
            
            // 设置当前页面的导航项为激活状态
            document.querySelectorAll('.sidebar-nav li').forEach(li => {
                li.classList.remove('active');
            });
            document.querySelector('.sidebar-nav li:nth-child(15)').classList.add('active');
        });
    </script>
</body>
</html> 